<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022/6/30
  Time: 10:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>第一个jsp</title>
  </head>
  <body>
    <%
      Date d=new Date();
      out.println(d);
      SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
      String s2=df.format(d);
    %>
  <h2>
    <%
      out.print(s2);
    %>
  </h2>
  </body>
</html>
